<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>登录页面</title>
<link rel="icon" href="favicon.ico" type="image/ico">
<meta name="keywords" content="若依">
<meta name="description" content="若依">
<meta name="author" content="yinqi">
<link rel="stylesheet" type="text/css" th:href="@{/css/materialdesignicons.min.css}">
<link rel="stylesheet" type="text/css" th:href="@{/css/bootstrap.min.css}">
<link rel="stylesheet" type="text/css" th:href="@{/css/style.min.css}">
<script>
       if(window.top!==window.self){alert('未登录或登录超时。请重新登录');window.top.location=window.location};
</script>
</head>
  
<body>
<div class="row no-gutters bg-white vh-100">
  <div class="col-md-6 col-lg-7 col-xl-8 d-none d-md-block" style="background-image: url(img/login-bg-1.jpg); background-size: cover;">

    <div class="d-flex vh-100">
      <div class="p-5 align-self-end">
        <img src="images/logo.png" alt="...">
        <br><br><br>
        <p class="text-white">Light Year Admin V4是一个后台管理系统的HTML模板，基于Bootstrap v4.4.1。</p>
      </div>
    </div>

  </div>

  <div class="col-md-6 col-lg-5 col-xl-4 align-self-center">
    <div class="p-5">
      <div class="text-center">
        <a href="index.html"> <img alt="light year admin" src="img/logo.png"> </a>
      </div>
      <p class="text-center text-muted"><small></small></p>

       <form class="login-form" id="signupForm" autocomplete="off">
        <div class="form-group">
          <label for="username">用户名</label>
          <input type="text" class="form-control" id="username" name="username" placeholder="请输入您的用户名">
        </div>

        <div class="form-group">
          <label for="password">密码</label>
          <input type="password" class="form-control" id="password" name="password" placeholder="请输入您的密码">
        </div>
		
	   <div class="form-group has-feedback row" th:if="${captchaEnabled==true}">
          <div class="col-7">
            <input type="text" name="validateCode" class="form-control" placeholder="验证码">
          </div>
          <div class="col-5 ">
            <a href="javascript:void(0);" title="点击更换验证码">
				<img th:src="@{/captcha/captchaImage(type=${captchaType})}" class="imgcode" style="height:35px"/>
			</a>
          </div>
        </div>

        <div class="form-group">
          <div class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input" id="rememberme">
            <label class="custom-control-label not-user-select" for="rememberme">5天内自动登录</label>
          </div>
        </div>

        <div class="form-group">
          <button class="btn btn-block btn-primary" type="submit"  id="btnSubmit"  data-loading="">立即登录</button>
        </div>
      </form>
      <p class="text-center text-muted mt-3">Copyright © 2020 <a href="http://lyear.itshubao.com">IT书包</a>. All right reserved</p>
    </div>
  </div>
</div>

<script th:inline="javascript"> var ctx = [[@{/}]]; var captchaType = [[${captchaType}]]; </script>
<script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/js/bootstrap.min.js}"></script>
<!-- 验证插件 -->
<script type="text/javascript" th:src="@{/ajax/libs/validate/jquery.validate.min.js}"></script>
<script type="text/javascript" th:src="@{/ajax/libs/validate/messages_zh.min.js}"></script>
<script type="text/javascript" th:src="@{/ajax/libs/layer/layer.min.js}"></script>
<script type="text/javascript" th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
<script type="text/javascript" th:src="@{/ruoyi/js/ry-ui.js?v=4.6.1}"></script>
<script type="text/javascript" th:src="@{/ruoyi/login.js}"></script>
</body>
</html>